//
//  DefineTheme.h
//  PetCommunity
//
//  Created by jinwenwu on 2017/8/8.
//  Copyright © 2017年 jinwenwu. All rights reserved.
//

#ifndef DefineTheme_h
#define DefineTheme_h

#define GESTUREPASSWORDSWITCH  @"PetCommunity_GesturePassword_Switch"
#define USR_LOGIN_SUCCESS_NOTIFY    @"userLoginSuccess"
#define GESTUREPASSWORD  @"PetCommunity_GesturePassword"

#define PC_COLOR_HIGHTLY_WHITE       RGBA(255, 255, 255, 0.5)
#define PC_COLOR_RED                 KGmColorWithHexColor(0xe94709)
#define PC_SEPARATOR_COLOR           KGmColorWithHexColor(0xFFE1E9F1)
#define PC_LABELCOLOR_GRAY           KGmColorWithHexColor(0x666666)
#define PC_COLOR_LGREEN              KGmColorWithHexColor(0x7FFFD4)

#define MENUVIEWHEIGHT  40

static inline UIEdgeInsets sgm_safeAreaInset(UIViewController *vc) {
    if (@available(iOS 11.0, *)) {
        UIEdgeInsets safeArea = [UIApplication sharedApplication].delegate.window.safeAreaInsets;
        if (safeArea.top == 0) {
            return UIEdgeInsetsMake(20, 0, 0, 0);
        }
        return safeArea;
    }
    return UIEdgeInsetsMake(20, 0, 0, 0);
}

#endif /* DefineTheme_h */
